import { createRouter, createWebHistory } from 'vue-router'

// 导入你的组件
import HomeName from '../views/HomeName.vue'
import AboutName from "@/views/AboutName.vue";
import LoginName from "@/views/LoginName.vue";
import DeviceName from "@/views/DeviceName.vue";

const routes = [
    {
        path: '/',
        name: 'Home',
        component: HomeName
    },
    {
        path: '/about',
        name: 'about',
        component: AboutName
    },
    {
        path:'/login',
        name: 'login',
        component:LoginName,
    },
    {
        path:'/device',
        name: 'device',
        component:DeviceName,
    },



]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
